//
//  UIView+Frame.m
//  01-UIViewHomeWork
//
//  Created by 韩旭 on 16/7/14.
//  Copyright © 2016年 QC.L. All rights reserved.
//

#import "UIView+Frame.h"

@implementation UIView (Frame)
- (void)setHx_x:(NSInteger)hx_x {
    CGRect rect = self.frame;
    rect.origin.x = hx_x;
    self.frame = rect;
}
- (NSInteger)hx_x {
    return self.frame.origin.x;
}
- (void)setHx_y:(NSInteger)hx_y {
    CGRect rect = self.frame;
    rect.origin.y = hx_y;
    self.frame = rect;
}
- (NSInteger)hx_y {
    return self.frame.origin.y;
}
- (void)setHx_width:(NSInteger)hx_width {
    CGRect rect = self.frame;
    rect.size.width = hx_width;
    self.frame = rect;
}
- (NSInteger)hx_width {
    return self.frame.size.width;
}
- (void)setHx_height:(NSInteger)hx_height {
    CGRect rect = self.frame;
    rect.size.height = hx_height;
    self.frame = rect;
}
- (NSInteger)hx_height {
    return self.frame.size.height;
}


@end
